package com.taiji.dianthus.service.api;

import com.taiji.dianthus.dao.api.SmsPublicUseRepository;
import com.taiji.dianthus.domain.sms.api.SmsDomain;
import com.taiji.dianthus.service.sms.SmsBackInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName SmsInfoServiceImnpl
 * @Description
 * @Author H.M
 * @Date 2020/7/15
 */
@Service
public class SmsPublicUseServiceImpl implements SmsPublicUseService {

    @Autowired
    private SmsPublicUseRepository repository;



    @Override
    public void saveAll(SmsDomain domain) {
        repository.saveAndFlush(domain);
    }

    @Override
    public SmsDomain getInfoByAccountId(String id) {
        return repository.getInfoByAccountId(id);
    }
}
